package com.fenyin.samples.study.jdk.nio.server.core.event;

import com.fenyin.samples.study.jdk.nio.server.core.Request;
import com.fenyin.samples.study.jdk.nio.server.core.Response;


/**
 * @author starboy
 */

public interface ServerListener {

   /**
    */
   public void onError(String error);

   /**
    */
   public void onAccept() throws Exception;

   /**
    */
   public void onAccepted(Request request) throws Exception;

   /**
    */
   public void onRead(Request request) throws Exception;

   /**
    */
   public void onWrite(Request request, Response response) throws Exception;

   /**
    */
   public void onClosed(Request request) throws Exception;
}
